// 导入组件
import pageTools from './PageTools'
import UploadExcel from './UploadExcel'
import UploadImg from './Uploading'
import ImageHolder from './imageHolder'
import Lang from './Lang'
import ScreenFull from './Sreenfull'

// 创建数组，数组中是导入的组件模块
const components = [
  pageTools,
  UploadExcel,
  UploadImg,
  ImageHolder,
  Lang,
  ScreenFull
]
export default {
  install(Vue) {
    // 对组件模块进行遍历
    // 回调函数形参，就是每一个组件
    components.forEach(component => {
      Vue.component(component.name, component)
    })
  }
}
